{if !empty($diyitem['data'])}
    {php $diyitem['style']['pagenum']=empty($diyitem['style']['pagenum'])?8:$diyitem['style']['pagenum']}
    {if empty($diyitem['style']['showtype']) || count($diyitem['data'])<=intval($diyitem['style']['pagenum'])}
        <div class="fui-icon-group noborder col-{$diyitem['style']['rownum']} {$diyitem['style']['navstyle']}" style="background: {$diyitem['style']['background']}">
            {loop $diyitem['data'] $menuitem}
                <a class="fui-icon-col external" href="{$menuitem['linkurl']}" data-nocache="true">
                    <div class="icon"><img src="{php echo tomedia($menuitem['imgurl'])}"></div>
                    <div class="text" style="color: {$menuitem['color']};">{$menuitem['text']}</div>
                </a>
            {/loop}
        </div>
    {else}
        <div class="swiper swiper-{$diyitemid}" data-element=".swiper-{$diyitemid}" data-view="1">
            <div class="swiper-container  fui-icon-group noborder col-{$diyitem['style']['rownum']} {$diyitem['style']['navstyle']}" style="background: {$diyitem['style']['background']}">
                <div class="swiper-wrapper" style="background: none;">
                    {loop $diyitem['data_temp'] $data_temp}
                        <div class="swiper-slide">
                            {loop $data_temp $menuitem}
                                <a class="fui-icon-col external" href="{$menuitem['linkurl']}" data-nocache="true" {if $diyitem['style']['background']!='#ffffff'}style="background: {$diyitem['style']['background']}"{/if}>
                                    <div class="icon"><img src="{php echo tomedia($menuitem['imgurl'])}"></div>
                                    <div class="text" style="color: {$menuitem['color']};">{$menuitem['text']}</div>
                                </a>
                            {/loop}
                        </div>
                    {/loop}
                </div>
                {if !empty($diyitem['style']['showdot'])}
                <div class="swiper-pagination"></div>
                {/if}
            </div>
        </div>
    {/if}

{/if}